package day15;

public class TestThread02 {
    public static void main(String[] args) {
        MyRunnable target = new MyRunnable();
        Thread t1 = new Thread(target);
        Thread t2 = new Thread(target);
        Thread t3 = new Thread(target);

        t1.start();
        t2.start();
        t3.start();

    }


}


class MyRunnable implements Runnable{

    @Override
    public void run() {
        for(int i = 0 ; i < 10 ; i++){
            System.out.println(i + "=" + Thread.currentThread().getName());
        }

    }
}